package com.echo.code.thread.mode.worker;

/**
 * Work Created by baiyap on 2018/9/24.
 */
public abstract class Work {

  public final void workout() {
    this.firstPhaseWork();
    this.secondPhaseWork();
  }

  protected abstract void firstPhaseWork();

  protected abstract void secondPhaseWork();
}
